# $Id: PKGBUILD 81342 2012-12-18 09:40:11Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Ben Mazer <blm@groknil.org>
# Contributor: Mike Douglas <code_monkey@gooeylinux.org>

pkgname=gtypist
pkgver=2.9.2
pkgrel=1
pkgdesc="universal typing tutor"
arch=('i686' 'x86_64')
url="http://www.gnu.org/software/gtypist/gtypist.html"
license=("GPL")
depends=('ncurses' 'perl')
makedepends=('emacs')
install=gtypist.install
source=(ftp://ftp.gnu.org/gnu/gtypist/$pkgname-$pkgver.tar.gz
	ncurses.patch)
md5sums=('e6f5ce16d3bdb335f7c698957bc54526'
         'ba5e990d948ba5019391094dac890aa6')

build() {
  cd $srcdir/$pkgname-$pkgver
  patch -p1 <$srcdir/ncurses.patch
  ./configure --prefix=/usr
  make
  make prefix=$pkgdir/usr install
  rm -f $pkgdir/usr/share/info/dir
}
